﻿using DoNetDrive.Core.Connector;
using DoNetDrive.Core.Data;
using DotNetty.Buffers;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Face8280WebSocketServer.WebSockt
{
    public class WebSocketTransaction : INData
    {
        public INConnectorDetail Connector { get; private set; }

        public JObject JData { get; set; }
        public WebSocketTransaction(INConnectorDetail cdtl, string sJson)
        {
            Connector = cdtl;
            JData = JObject.Parse(sJson);
        }
        public IByteBuffer GetBytes()
        {
            return default;
        }

        public IByteBuffer GetBytes(IByteBuffer databuf)
        {
            return default;
        }

        public int GetDataLen()
        {
            return default;
        }

        public void SetBytes(IByteBuffer databuf)
        {
           
        }


    }
}
